home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tk_SetColorModel(3) Tk Library Procedures
-
-
-
- _________________________________________________________________
-
- NAME
- Tk_SetColorModel, Tk_GetColorModel - access color model for
- screen
-
- SYNOPSIS
- #include <tk.h>
-
- Tk_SetColorModel(_t_k_w_i_n, _m_o_d_e_l)
-
- Tk_ColorModel
- Tk_GetColorModel(_t_k_w_i_n)
-
- ARGUMENTS
- Tk_Window _t_k_w_i_n (in) Token for window.
-
- Tk_ColorModel _m_o_d_e_l (in) New model to use for
- _w_i_n_d_o_w's screen.
- _________________________________________________________________
-
-
- DESCRIPTION
- These procedures allow the color model for a screen to be
- read and written. See the documentation for the tk colormo-
- del command for details on the color model and how it is
- used. Tk_SetColorModel sets the color model for the screen
- associated with _t_k_w_i_n to _m_o_d_e_l. _M_o_d_e_l must be either
- TK_COLOR or TK_MONO. In contrast to the tk colormodel com-
- mand, there are no restrictions on the value passed to
- Tk_SetColorModel (you can set the model to TK_COLOR even if
- the screen only has one bit plane). Tk_GetColorModel
- returns the current color model for the screen associated
- with _t_k_w_i_n.
-
-
- KEYWORDS
- color model, screen
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tk 1
-
-
-
-